home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
scope
/
101-125
/
scopedisk125
/
setmouse
/
sm.doc
< prev
next >
Wrap
Text File
|
1995-03-19
|
5KB
|
132 lines
> What is "sm"...
"sm" (previously referred to as "SetMouse") is an AmigaDOS executable
which sends Intuition a message that mouse EVENTS can be found at either
one of the Amiga's two mouse/game ports.
Based upon source code written by R. "Kodiak" Burns many moons ago,
(the date of his source is 08-Apr-86), "sm" is slightly larger in
program size, but now contains more features. I have also re-written
the source to reflect compiler upgrades and to make it easier to
maintain (as per my own specific programming guides).
> Distribution and Warranties...
The program, "sm", as well as this documentation are freely
distributable, and may be used as you wish. No warranties of any kind,
either specific or implied are carried with this product. The only
guarantee made is that the executable and the documentaion will occupy
space on a disk.
> Requests and Bug Reports...
Charles Conlow, of Artemis Software is the person to contact if you have
any questions regarding this, or future revisons of "sm". I can be
reached electronically:
Compuserve 74116,3067
InterNet 74116,3067@compuserve.com
GEnie C.CONLOW
...Alternately:
USMail Charles Conlow/Artemis Software
2144 California Street NW
Suite 808
Washington, DC 20008
> Why "sm"...
Some time ago, my Amiga started acting really flakey. Intuition would
put up requesters that the printer was not connected, when it was. The
mouse pointer would travel in only horizontal directions, no matter how
the actual mouse was moved.
Of course, computers only break when the deadline for a major project is
very close. I could not take the beastie in to the shop right away, so
a quick work-around was in order.
The printer problem was solved by sending output to a disk file, then
using another Amiga to get hardcopy. The mouse problem was slightly
more difficult. I had the source for Bob Burns "setmouse" handy, and
just as a test, compiled it right off. Using "setmouse", and plugging
the mouse into the right port, all was well! Computer later saw repair
at shop, and 8520s were replaced, effecting repair.
"SetMouse" was then relegated to archive disk, and forgotten. Recently
a CIS user asked for a program to switch active mouse ports. What do
you know? "sm" is a further enhancement to that program.
> Program usage...
At a command line prompt, type the program name ("sm"), and the port
that you wish Intuition to look at for mouse EVENTS. For example, if
you wish to plug the mouse into the right-most port, and tell Intuition
about the change you have made, type...
sm 1
...all mouse EVENTS will be handled correctly. To re-establish the
default condition, plug the mouse into the left-most port and type...
sm 0
...and you are back to normal. Some programs, and these are few and
far between, may look directly to the Amiga hardware for mouse EVENTS.
The default mouse port is #0, the left-most port. If you have plugged
the mouse into port #1, and used "sm" to tell Intuition about it, any
programs which are looking at the hardware of port #0 will never see
any mouse EVENTS. You should immediately contact the authors of those
programs and scold them severly. They have written their programs in a
very un-Amiga-like way.
Typing "sm" with no (or invalid) arguments will display a simple usage
template.
> Electrical considerations...
Having mentioned several times "plugging the mouse" and "unplugging the
mouse", I think it is necessary to point out that...
YOU SHOULD NEVER, *** EVER *** PLUG OR UN-PLUG THE MOUSE WHEN THE
COMPUTER IS TURNED ON!!!
This is true of any and all expansion cards, external control devices,
printers, modems and whatever do_dads are connected to your computer.
There are electrical signals on all these ports, and the damage that a
single static discharge can cause is considerable. So please make sure
the computer is turned *** OFF *** whenever you are connecting or
disconnecting *** ANYTHING *** to it.
If you wish to use "sm" to switch mouse ports, follow these steps...
1. In your startup-sequence, add the following line
sm PORT
...where PORT is the port that you will be using (0 or 1).
2. If computer is on, turn it off.
3. Unplug the mouse from its current location.
4. Plug the mouse into the desired location (the PORT mentioned above).
5. Turn the computer back on, and boot as usual.
A message will appear on the screen during the execution of the
startup-sequence, and when the computer has finished booting, the mouse
EVENTS will be broadcast from the port you requested.
> Programmer's note...
Unless requested, no further enhancements will be made to this program.
Several come to mind, and they would be simple to implement. But they
are for other programs. "sm" serves the purpose for which it was
created.
Additionally, I really don't want to make this document any longer than
it already is ;-)